/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.gwc.yy.liuxue.entity;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.sys.entity.User;

/**
 * 申请记录Entity
 * @author 黎俊涛
 * @version 2017-04-13
 */
public class YyApplySchool extends DataEntity<YyApplySchool> {
	
	private static final long serialVersionUID = 1L;
	private School school;		// 院校
	private String department;		// 院系
	private String profession;		// 专业
	private String adRequire;		// 录取要求
	private String schContact;		// 联系方式
	private String webLink;		// 网申链接
	private String webAccount;		// 网申账号
	private String applyStatus;		// 申请状态
	private String applyResult;		// 录取结果
	private User student;
	private User adviser;
	


	public YyApplySchool() {
		super();
	}

	public YyApplySchool(String id){
		super(id);
	}

	@NotNull(message="学校不能为空")
	public School getSchool() {
		return school;
	}

	public void setSchool(School school) {
		this.school = school;
	}
	
	@Length(min=0, max=100, message="院系长度必须介于 0 和 100 之间")
	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}
	
	@Length(min=0, max=100, message="专业长度必须介于 0 和 100 之间")
	public String getProfession() {
		return profession;
	}

	public void setProfession(String profession) {
		this.profession = profession;
	}
	
	@Length(min=0, max=500, message="录取要求长度必须介于 0 和 500 之间")
	public String getAdRequire() {
		return adRequire;
	}

	public void setAdRequire(String adRequire) {
		this.adRequire = adRequire;
	}
	
	@Length(min=0, max=200, message="联系方式长度必须介于 0 和 200 之间")
	public String getSchContact() {
		return schContact;
	}

	public void setSchContact(String schContact) {
		this.schContact = schContact;
	}
	
	@Length(min=0, max=200, message="网申链接长度必须介于 0 和 200 之间")
	public String getWebLink() {
		return webLink;
	}

	public void setWebLink(String webLink) {
		this.webLink = webLink;
	}
	
	@Length(min=0, max=200, message="网申账号长度必须介于 0 和 200 之间")
	public String getWebAccount() {
		return webAccount;
	}

	public void setWebAccount(String webAccount) {
		this.webAccount = webAccount;
	}
	
	@Length(min=0, max=50, message="申请状态长度必须介于 0 和 50 之间")
	public String getApplyStatus() {
		return applyStatus;
	}

	public void setApplyStatus(String applyStatus) {
		this.applyStatus = applyStatus;
	}
	
	@Length(min=0, max=50, message="录取结果长度必须介于 0 和 50 之间")
	public String getApplyResult() {
		return applyResult;
	}

	public void setApplyResult(String applyResult) {
		this.applyResult = applyResult;
	}
	public User getStudent() {
		return student;
	}

	public void setStudent(User student) {
		this.student = student;
	}

	public User getAdviser() {
		return adviser;
	}

	public void setAdviser(User adviser) {
		this.adviser = adviser;
	}

}